[{if $smarty.session.access > 0}]
<table id="assetTable" class="sortable">
  <thead>
      <tr><th>Type Name</th>
      <th>Location ID</th>
      <th>Quantity</th></tr>
  </thead>
  <tbody>
    [{foreach from=$assets item=asset key=id name=assetlist}]
    <tr>
      [{if !isset($asset.containerID)}]
        <td class="office"><a href="?a=assets&w=[{$asset.itemID}]">
        [{if $asset.typeName == 'Office'}]
          [{$asset.typeName}] - [{$asset.solarSystemName}]
        [{else}]
          [{$asset.typeName}] - [{$asset.locationName}]
        [{/if}]
        </a></td>
      [{else}]
        <td>[{$asset.typeName}]</td>
      [{/if}]
      <td>[{$asset.locationName}]</td>
      <td class="numeric">[{$asset.quantity|number_format:0}]</td>
    </tr>
    [{/foreach}]
  </tbody>
</table>
[{literal}]<script language="javascript" type="text/javascript">
  var jobTableFilters = {
    col_1: "select",
    col_2: "none",
    sort_select: true,
    btn: false,
    loader: true,
    loader_text: "Filtering data...",
    loader_html: '<img src="./images/loader.gif" alt="" ' +
      'style="vertical-align:middle;" /><h3>Loading...</h3>',
    display_all_text: "< Show all >"
  }
  setFilterGrid("assetTable",jobTableFilters);
</script>[{/literal}]
[{/if}]